public class DiseaseItem
{
    int[] Occupied              ;
    //Username, Cause, Symptom, Department, Medication, Diet, Reliefmethod
    private String cause        ;
    private String symptom      ;
    private String medication;
    private String department   ;
    private String diet         ;
    private String reliefmethod ;
    private String impact       ;
    private String urgency      ;
    private String diseasetype  ;
    private String organ  ;
    private boolean test;

    boolean Test(){
        return test;
    }
    DiseaseItem Test(boolean test){
        this.test = test;
        return this;
    }

    public DiseaseItem(){
        Occupied        = new int[]{0,0,0,0,0,0,0,0,0,0,0};
        cause           = "X";
        symptom         = "X";
        medication      = "X";
        department      = "X";
        diet            = "X";
        reliefmethod    = "X";
        impact          = "X";
        urgency         = "X";
        diseasetype     = "X";
        organ           = "X";
        test            = false;
    }

    public String Organ() {
        return diseasetype;
    }

    public DiseaseItem Organ(String organ) {
        if(!diseasetype.isEmpty())
            Occupied[10] = 1;
        else Occupied[10] = 0;

        this.diseasetype = organ;
        return this;
    }

    public String Diseasetype() {
        return diseasetype;
    }

    public DiseaseItem Diseasetype(String type) {
        if(!diseasetype.isEmpty())
            Occupied[9] = 1;
        else Occupied[9] = 0;

        this.diseasetype = type;
        return this;
    }

    public String Disease() {
        return cause;
    }

    public DiseaseItem Disease(String disease) {
        if(!cause.isEmpty())
            Occupied[0] = 1;
        else Occupied[0] = 0;

        this.cause = disease;
        return this;
    }

    public String Cause() {
        return cause;
    }

    public DiseaseItem Cause(String cause) {
        if(!cause.isEmpty())
            Occupied[0] = 1;
        else Occupied[0] = 0;

        this.cause = cause;
        return this;
    }

    public String Symptom() {
        return symptom;
    }

    public DiseaseItem Symptom(String symptom) {
        if(!symptom.isEmpty())
            Occupied[1] = 1;
        else Occupied[1] = 0;
        this.symptom = symptom;
        return this;
    }

    public String Medication() {
        return medication;
    }

    public DiseaseItem Medication(String Medication) {
        if(!Medication.isEmpty())
            Occupied[2] = 1;
        else Occupied[2] = 0;
        this.medication = Medication;
        return this;
    }

    public String Department() {
        return department;
    }

    public DiseaseItem Department(String department) {
        if(!department.isEmpty())
            Occupied[3] = 1;
        else Occupied[3] = 0;
        this.department = department;
        return this;
    }

    public String Diet() {
        return diet;
    }

    public DiseaseItem Diet(String diet) {
        if(!diet.isEmpty())
            Occupied[4] = 1;
        else Occupied[4] = 0;
        this.diet = diet;
        return this;
    }

    public String Reliefmethod() {
        return reliefmethod;
    }

    public DiseaseItem Reliefmethod(String reliefmethod) {
        if(!reliefmethod.isEmpty())
            Occupied[5] = 1;
        else Occupied[5] = 0;
        this.reliefmethod = reliefmethod;
        return this;
    }

    public String Impact() {
        return impact;
    }

    public DiseaseItem Impact(String impact) {
        if(!impact.isEmpty())
            Occupied[6] = 1;
        else Occupied[6] = 0;
        this.impact = impact;
        return this;
    }

    public String Urgency() {
        return urgency;
    }

    public DiseaseItem Urgency(String urgency) {
        if(!urgency.isEmpty())
            Occupied[7] = 1;
        else Occupied[7] = 0;
        this.urgency = urgency;
        return this;
    }

    public boolean isEmpty(){
        int sum = 0;
        for(int i : Occupied)
            sum += i;
        return (sum == 0);
    }


    /*
    private String cause        ;
    private String symptom      ;
    private String Medication   ;
    private String department   ;
    private String diet         ;
    private String reliefmethod ;
    private String impact       ;
    private String urgency      ;
    private String diseasetype
     */
    @Override
    public String toString() {
        return "{" +
                cause + "," + organ + "," +
                diseasetype + "," + impact + "," +
                reliefmethod + "," + symptom + "," +
                department + "," + diet + "," +
                urgency +
                "}";
    }

}
